package com.weipt.service.impl;

import com.weipt.entity.User;
import com.weipt.mapper.UserMapper;
import com.weipt.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author weipt
 * @since 2024-01-03
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public void addUser() {
        User user = new User();
        user.setName("weipt");
        user.setMoney(new BigDecimal(50000));
        userMapper.insert(user);
    }
}
